import {localRequest} from '@/utils';
import { request } from '@/utils/request';

const localLoginAPI = function(){
    return localRequest({
        url:'usr/userStatus.json',
        method:'GET'
    })
}

const localGetUserInfoAPI = function(){
    return localRequest({
        url:'usr/userInfo.json',
        method:'GET'
    })
}

const loginAPI = function(formData){
    return request({
        url:'/login',
        method:'POST',
        data:formData
    })
}


const registerAPI = function(formData){
    return request({
        url:'/register',
        method:'POST',
        data:formData
    })
}

export {
    localLoginAPI,
    localGetUserInfoAPI,
    registerAPI,
    loginAPI
}